<%--
  Created by IntelliJ IDEA.
  User: YHY
  Date: 2024/6/17
  Time: 22:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page session="true" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><a href="productSelectByPage"><img src="images/logo.gif" /></a></div>
    <div class="help"><a href="shopcarList" class="shopping">购物车</a>
        <c:choose>
            <c:when test="${empty sessionScope.user}" >
                <a href="login.jsp">登录</a>
                <a href="register.jsp">注册</a>
            </c:when>
            <c:otherwise>
                <a href="#">${sessionScope.user.eu_user_id}</a>
                <a href="javascript:logout()">退出</a>
                <a href="javascript:deregister()">注销</a>
            </c:otherwise>
        </c:choose><a href="ViewSelectByPage2">留言</a>
        <a href="manage/index.jsp">后台</a>
    </div>
    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="productSelectByPage">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="#">音乐</a></li>
            <li><a href="#">影视</a></li>
            <li><a href="#">少儿</a></li>
            <li><a href="#">动漫</a></li>
            <li><a href="#">小说</a></li>
            <li><a href="#">外语</a></li>
            <li><a href="#">数码相机</a></li>
            <li><a href="#">笔记本</a></li>
            <li class="last"><a href="#">Investor Relations</a></li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    function logout() {
        if(confirm("确认要退出登录吗？")){
            window.location.href="Logout";
        }
    }
    function deregister(){
        if(confirm("确定要注销账号吗？注意这个操作不可逆！")){
            window.location.href="Deregister";
        }
    }
</script>
</body>
</html>
